Mechanism of the gold(I)-catalyzed synthesis of imidazo-pyrimidines and imidazo-pyrazines via [3 + 2] dipolar cycloaddition: a DFT study