Importance of Biologically Active Aurora-like Ultraviolet Emission: Stochastic Irradiation of Earth and Mars by Flares and Explosions