Application of Maxwell to undergraduate electromagnetics instruction