Efficient purification of halide-based ionic liquids by means of improved apparatus for continuous liquid-liquid extraction