Nonlinear TE waves in a dielectric slab waveguide with two optically nonlinear layers