A time-of-flight spectrometer for elastic neutron scattering on powdered samples