Effect of two-photon absorption on the amplification of ultrashort optical pulses.