Economies can rebound quickly from massive GDP slumps—but not always