An innovative application of numerical Schwarz-Christoffel transformations to the optimal shape design of a permanent magnet motor