Hydrogen diffusion in nanocrystalline, mesoscopic, and microcrystalline heterogeneous alloys