Compensation of Doppler braodening by light shifts in two photon absorption