Relativistic electron avalanches as a thunderstorm discharge competing with lightning