Full vectorial analysis of nonlinear-optical waveguides