Gating of Water Flow Induced by Bending of a Carbon Nanotube