Two-level atoms and solitons