Transition metal complexes coupled to vacancies in oxides: origin of different properties of Cr3+ in MgO bounded to a <100> or <110> Mg2+ vacancy.