Partial discharge detection method