An algorithm for arcing-fault location on transmission lines