An ancient tree revealed the tale of Earth’s magnetic field reversal