Reverse electrodialysis heat engine for sustainable power production