A simulation tool for analysis and design of reverse electrodialysis using concentrated brines