Ab initio studies of the conformation dependence of the spectra of stable conformers of n-pentane and n-hexane