Structure and dynamics of protein in the permeation and gating of potassium ion channels : identifying molecular determinants and developing coarse-grained approaches