Conformational changes during the gating of a potassium channel revealed by structural mass spectrometry.