Excitation and propagation of spin waves in non-uniformly magnetized waveguides