Quasi-Babinet principle in dielectric resonators and Mie voids