Title: Advanced theory of waveguides