Extending the relationship between global warming and cumulative carbon emissions to multi-millennial timescales