Adaptive relaying to balance protection dependability with power system security