Analysis and Optimization of Axial Flux Permanent Magnet Machine for Cogging Torque Reduction