An introduction to electromagnetic compatibility