Exact treatment of the Jaynes–Cummings model under the action of an external classical field