Electromagnetic modeling of composite metallic and dielectric structures