Capillary models for porous media. VII. Study of gaseous flow in the transition from the Knudsen to the counter-diffusion regimes