Detection and analysis of partial discharges in non-uniform field