Surfactant-modulated switching of molecular transport in nanometer-sized pores of membrane gates.