A Thermodynamic Framework for Modelling Membrane Transporters