A magnetically staged fluidized bed for countercurrent gas—solids contacting