Near resonant third harmonic generation