Half-Collision Approach to Cold Chemistry: Shape Resonances, Elastic Scattering, and Radiative Association in the H++H and D++D Collision Systems