Magnetic filtration of particles in laminar flow through a bed of spheres