electromagnetic energies