Electrodialysis as an alternative for reverse osmosis in an integrated membrane system