Optical waveguide analysis using Beam Propagation Method