Text this: Developing a Compact PMSM Drive with Integrated Charging Functionality for Electric Vehicle Propulsion.