Gamma-ray spectra from inelastic neutron scattering