Text this: Optical waveguide theory by the finite element method