Rapidly converging expressions for dyadic Green's functions in two-dimensional resonators of circular and rectangular cross-section