How does the theory of electromagnetic compatibility (EMC) address the challenges of electromagnetic interference (EMI) and ensure that electronic devices and systems can operate reliably in their intended environments without causing or experiencing interference?