Analytical results for 2-D non-rectilinear waveguides based on a Green's function