Analysis of Electromagnetic Fields and Waves