Successful detection of a high-energy electrical short circuit and a “rescue” shock using a novel automatic shocking-vector adjustment algorithm