Advanced performance prediction tools for the analysis of rotating electrical machines