Medium effects in protonation equilibrium studies. Accurate acidity constants using the excess acidity method