Energetics of weakening and recovery of the Atlantic overturning in a climate change simulation