Dissociation of acids in water