Condition monitoring for identification and detection of fault in electrical machines