Structural Snapshots of Intermediates in the Gating of a K+ Channel