Variational and finite element analyses of nonlinear strip optical waveguides