Automatic Noise Rejection Tools in On-Field Partial Discharge Measurements