Auto reclose under- and overvoltage relay