Enhanced second-harmonic generation from resonant GaAs gratings