Adiabatic following for a three-state quantum system