Text this: Methodology for Diagnostics of Transformers and D.C. Electric Machines