Phase-matching optima for high-order multiwave mixing and harmonic generation beyond perturbation limit