Characteristics of PD under square wave voltages and their influence on motor insulation endurance