Numerical simulation of EMC tests for compliance