Phonons in Solid Hydrogen and Deuterium Studied by Inelastic Coherent Neutron Scattering