Measurement and analysis of partial discharge current during square voltage waveforms