Necessary and sufficient conditions for realizability of point processes