Basis of substrate binding and conservation of selectivity in the CLC family of channels and transporters