Threshold conditions for vortex-stabilized electrical discharges in the atmosphere