Decision support systems for environmental management: a case study on wastewater from agriculture.