Monitoring and diagnostics of electrical machines and drives: A state of the art