Dyadic Green's Functions for the Inhomogeneous Cylindrical Waveguide and Cavity and Their Applications