Structure of ionic liquids on the basis of imidazole and their mixtures with water