The Computation of Chemical Equilibria