A 2d model for the effect of gas diffusion on mobility of foam for EOR