Synthesis of halogenated hydrazone derivatives and their applicability in the preparation of 4‐chloropyrazoles