Electrodialysis for wastewater treatment-part I: Fundamentals and municipal effluents