A time-of-flight mass spectrometer for measurement of secondary ion mass spectra