A formal solution for wave propagation in rectangular waveguide with an inserted nonlinear dielectric slab