Analysis of doped layer step waveguides using dark modes