Polyphase distance relay by 6-input phase-sequence detector