Molecular and Brownian dynamics study of ion selectivity and conductivity in the potassium channel