Text this: A Complete Analysis for Detection and Localization of Partial Discharges in XLPE Cables, Power Transformers and Generators