Electronic structure of open-shell transition metal complexes