Finite Element Methods for Nonlinear Optical Waveguides