Solar X-ray flare hazards on the surface of Mars