Direct hydrogenation of Mg and decomposition behavior of the hydride formed