Ion formation and acceleration with pulsed surface ionization: Two modes for time-of-flight mass spectrometry