Photon and gluon emission in relativistic plasmas