Influence of stagnant zones on solute transport in heterogeneous porous media at the pore scale