Insight into the selectivity and gating functions of Streptomyces lividans KcsA