Development of Virtual Methodology to Evaluate Electric Motor Losses