Thermodynamics in Geochemistry: The Equilibrium Model