Variations in groundwater discharge and its biogeochemical impact along a precipitation gradient