what types of stimuli can cause the gates on ion channels to open or close?