Diagnosis of stator windings of A.C. machines using partial discharges technique