Structural dynamics of the M4 transmembrane segment during acetylcholine receptor gating.