An electrostatic nanosecond switch in a nanoscale water channel