Modeling the influence of chemical reactions on the mechanisms of ionic transport in porous materials