A holistic look at Earth’s chemical cycling sheds light on how the planet stays habitable