On-the-fly adiabatically switched semiclassical dynamics for vibrational spectroscopy