Time-of-flight spectrometer