Adiabatic elimination in a lambda system