Detent Force Minimizing for Moving-Magnet-Type Linear Synchronous Motor