Electrostatics, proton sensor, and networks governing the gating transition in GLIC, a proton-gated pentameric ion channel