Hysteresis of the Earth system under positive and negative CO2 emissions