Measurement of inclusive neutron spectra from p-Be up to 24 GeV/c incident momentum