Nanofluidic energy conversion and molecular separation through highly stable clay-based membranes