Ab initio and density functional calculations of mean-square amplitudes of vibration for benzene and cubane