A system-level approach to the optimal dimensioning of induction-motor variable-frequency drives