A thermodynamic analysis of CLC transporter dimerization in lipid bilayers