A mass spectrometer for fission fragments based on time-of-flight and energy measurements