The emission of electromagnetic radiation from a quantum system interacting with an external noise: A general result