Unified theory of near-field analysis and measurement: Scattering and inverse scattering