Real-time measurement system for determining metal concentrations in water-intensive processes