Thermal management integrated with three-dimensional heat pipes for air-cooled permanent magnet synchronous motor