Zoned migration of magnetotactic bacteria