Ion dynamics in a trapped ion mobility spectrometer.