Study reveals how nanochannels select potassium ions