Relationships among Gibbs free energies and enthalpies of formation of phosphates, oxides and aqueous ions