A three-dimensional microstructural model of reactions and transport in aqueous mineral systems