Wave propagation in non-uniform waveguides