Density Functional Theory Study of Substituent Effects on the 1,3-Dipolar Cycloaddition Mechanism