Electronic and vibronic spectra of transition metal complexes