Isotopic constraints on the source and transformation of nitrate in groundwater systems