A time-of-flight spectrometer for neutrons from 1 to 500 MeV☆