Electronic properties of an organometallic d0 precatalyst in the ground and excited states