New Route for the Synthesis of Pyrazole, Triazole, Triazine, and Triazepine Derivatives