Optimization of a SPM machine using a non-isotropic magnetic wedge with an analytical method for cogging torque estimation