Rotation and Locking of Magnetic Islands