Acid-base equilibria of some 6-membered n-heterocyclic compounds