Influence of aquifer and streambed heterogeneity on the distribution of groundwater discharge