Effect of the refractive index dip on the propagation characteristics of step index and graded index fibers