Thermal management of a Formula E electric motor: Analysis and optimization