The accelerated ions give up energy to the molecules of ...
The atom gives up (or releases, or liberates) its energy as radiated light.
Microwaves in a wave guide lose energy to the walls of the guide.