Thermal analysis and experimental investigation of radial and axial flux permanent magnet motors