Analysis of nonuniform transmission lines with an iterative and adaptive perturbation technique