Critical composition dependence of the hydrogenation of Mg2 +/-delta Ni thin films