How grazing management affects water quality