Stability of Condensed Phosphate Complexes. I. Alkaline-earth Metal Complexes