Infrared and Raman spectra of the IV-VI compounds SnS and SnSe