Beam propagation method analysis of transverse-electric waves propagating in a nonlinear tapered planar waveguide