Computational models of electromagnetic resonators : Analysis of edge element approximation