Wave packet simulation of electronic spectra