The effect of spatial heterogeneity on nitrate reduction in soil systems