Modelling the effects of livestock on nutrient flows in mixed crop-livestock systems.