Sampling of semiclassically quantized polyatomic molecule vibrations by an adiabatic switching method: Application to quasiclassical trajectory calculations