Understanding the Electronic Structures of First-Row Transition Metal Complexes for Solar Energy Conversion and Catalysis