Effective Diffusion Coefficient of a Porous Material Applied to the Problem of Hydrogen Damage