Investigation on terahertz generation from zinc-blende crystal waveguide at polariton resonance