Permanent magnets that switch on and off at will are quietly revolutionizing robotics and security tech.