Efficient high-harmonic generation in engineered quasi-phase matching gratings