Headwater influences on downstream water quality