Generalized propagation techniques for longitudinally varying refractive index distributions