Reactions with 5-aminopyrazoles. I: Synthesis of halogen-containing fused pyrazoles