Optimization of Cogging Torque in A Hybrid Axial and Radial Flux Permanent Magnet Machine