Solving the EMI Equations using Finite Element Methods