Reactions of 1,3-diphenyl-2-pyrazolin-5-one and 4-amino-1,5-dimethyl-2-phenyl-1H-pyrazol-3(2H)-one. Synthesis of some new pyrazoles and pyrazolones