Trends in fault diagnosis for electrical machines