Vibrational and electronic spectra of some polyatomic molecules and studies in molecular constants from spectral data