A numerical technique for the determination of propagation characteristics of inhomogeneous planar optical waveguides