Ligand Field Theory and the Stability of Transition Metal Compounds