Balancing environmental quality standards and infrastructure upgrade costs for the reduction of microcontaminant loads in rivers