Extended coupled cluster for Raman and infrared spectra of small molecules