Chemical Equilibria: General Principles