Fourier transform time-of-flight mass spectrometry in an electrostatic ion beam trap