Development and Application of a Programmable Partial Discharge Calibrator,