Finite-Difference Modeling of Dielectric Waveguides With Corners and Slanted Facets