Optimizing the third harmonic generated from air plasma filaments pumped by femtosecond laser pulses