Synthesis of tetrasubstituted pyrazoles containing pyridinyl substituents