Bandwidth broadening and spectrum tailoring of second-harmonic generation in transversely nonuniform quasi-phase-matching gratings with spatial spectral dispersion