Global versus local mechanisms of temperature sensing in ion channels