Nanofluidics for osmotic energy conversion