The transport of 2D electrons through magnetic barriers