The angular overlap model of the ligand field: theory and applications