Transport of magnetic edge states in a quantum wire exposed to a non-homogeneous magnetic field