Theoretical investigation of the effect of graphite interlayer spacing on hydrogen absorption