Effects of alkyl chain length and solvents on thermodynamic dissociation constants of the ionic liquids with one carboxyl group in the alkyl chain of imidazolium cations.