Impact of Nanostructuring on the Phase Behavior of Insertion Materials: The Hydrogenation Kinetics of a Magnesium Thin Film