Adiabatic approximation for a two-level atom in a light beam