In-situ XAS for niobium oxide catalyst on hydrogen absorption and desorption of magnesium