The Finite Element Method for Electromagnetic Modeling