Ab Initio Study of the Hydrogen Exchange Reaction at Group 3 and 4 Metals in Comparison to That at Alkali Metals