Magnetic Sensor Design for a Permanent Magnet Linear Motor Considering Edge-Effect