Nonclassical Pschorr and Sandmeyer reactions in pyrazole series