Unexpected ring closure between hydrazono and nitro groups: a useful protocol for the synthesis of substituted pyrazolo n-oxides