Chemistry in the Earth's systems