A quantitative typology for distinguishing active and legacy source contributions to stream water quality