Controlled Partial Electrolysis Optimizes Process Water Treatment