Model for the gas evolution in a porous medium driven by solute diffusion