Applicability of averaged concentrations in determining geochemical reaction rates in heterogeneous porous media