Reactions of hydrazonoyl halides with heterocyclic thiones. Convenient methodology for heteroannulation, synthesis of spiroheterocycles and heterocyclic ring transformation