Leaky-wave resonances in second-harmonic generation induced by surface transient grating