Hydrogen desorption and absorption for activated magnesium hydride