Characterization of electroregeneration and determination of optimal current density in continuous electrodeionization