Quasi-phase-matching and dispersion characterization of harmonic generation in the perturbative regime using counterpropagating beams.