Viability of pressure-retarded osmosis for harvesting energy from salinity gradients