Electromagnetic compatibility testing and measurement