Energetic ion mass spectrometer