CuCl2-catalyzed heterocyclization reactions in ionic liquids