Theory of neutron scattering from liquid and solid hydrogen