Membrane-based production of salinity-gradient power