Hydrogenation mechanism in lanthanum-activated magnesium films