Electromagnetic emission from a neutral-beam-injected plasma