Internal carbon deposition resulting from a redistribution of gaseous species under combined diffusion and steam reforming reactions in a catalyst pellet