The chemistry of weathering