State-to-state reaction dynamics of H + D2 and the alignment and orientation of hydrogen molecules