Chemical equilibria in soils