AC and DC partial discharge measurements on defective cables