X flare ionized the top of Earth's atmosphere