Effect of Ni nanoparticle distribution on hydrogen uptake in carbon nanotubes