Gas diffusion and temperature dependence of bubble nucleation during irradiation