Numerical analysis of thermal defocusing in a pulsed CO2 amplifier