Studies of Brønsted acid-base equilibria in water and nonaqueous media