Electrodialysis reversal for industrial reverse osmosis brine treatment