Analysis of propagation characteristics of whispering gallery modes in a dielectric disk or a curved rectangular dielectric waveguide