Text this: Characterization of planar slab waveguide