SMS dit: Fundamentals of optical waveguides