Finite element formulation for the electromagnetic analysis of a metallic wedge arbitrarily loaded and shaped near the edge