Numerical Wire Grid Modeling of Cavity Resonators to determine Quality Factors