Prediction of Gibbs energies of formation—I. Relationships among Gibbs energies of formation of hydroxides, oxides and aqueous ions