Using pKa values to predict the position of equilibrium