Phase matching and harmonic generation in Bessel–Gauss beams