Title: A critical assessment of the finite element method for calculating electric and magnetic fields