State-to-state Reaction Dynamics, Energy Transfer, and Scattering in Collisions of Hydrogen and Deuterium Atoms with Hydrogen Molecules