Electronic spectra and quantum chemistry