Resonant osmosis across active switchable membranes.