A Molecular Framework for Temperature-Dependent Gating of Ion Channels