Measurement of neutron spectra with hydrogen proportional counters