Role of Protic and Dipolar Aprotic Solvents in Heterocyclic Syntheses via 1,3-Dipolar Cycloaddition Reactions