Fast Algorithm for Contactless Partial Discharge Detection on Remote Gateway Device