Climate legacies drive global soil carbon stocks in terrestrial ecosystems