Gas Transport in the Near-Surface Porous Layers of a Cometary Nucleus