Diffusion and evolution of hydrogen in hydrogenated amorphous and microcrystalline silicon