Mechanism of hydrogenation reaction in the Li-Mg-N-H system.