Surface-enhanced second-harmonic diffraction: Selective enhancement by spatial harmonics