Accurate and Efficient Methods for the Scattering Simulation of Dielectric Objects in a Layered Medium