Optimal Design of a Multipole-Electromagnet Robotic Platform for Ophthalmic Surgery