Insights into CRAC channel gating and ion permeation