using electromagnets