Reclamation of waste-water constituents by ion exchange. III: Optimization of plant performance