An analysis of the vibrational structure of high-resolution UV spectra and long-wave IR Fourier transform spectra in studies of internal rotation in molecules