Electrostatic gating of a nanometer water channel