Theoretical investigation on the third harmonic generation by double resonances in waveguide directional couplers