Design of low-cost synchronous machine to prevent demagnetization