Long-time behaviour of a two-level system in interaction with an electromagnetic field