Extended Active Space Ab Initio Ligand Field Theory: Applications to Transition-Metal Ions