Nano-structured membranes for clean energy harvesting from salinity gradient and low-grade waste heat