Temporal evolution of femtosecond laser induced plasma filament in air and N2