Electromagnetic Analysis and Condition Monitoring of Synchronous Generators