Thermal desorption of hydrogen from magnesium hydride