Statistical and continuum models of fluid-solid reactions in porous media