Underlying thermodynamics of pH-dependent allostery.