Determination of microscopic acid dissociation constants by nuclear magnetic resonance spectrometry