Analysis of discontinuities in planar dielectric waveguides: an eigenmode propagation method