Renewable electricity from salinity gradients using reverse electrodialysis