Electrodialytic crystallization to enable zero liquid discharge