Analysis and design of Dielectric resonators