Dynamically configurable and optimizable Zeeman slower using permanent magnets and servomotors