Rare earth and hydrogen energy storage