Electronic Structure of Transition-Metal Complex Ions