Avoiding Middle-Income Growth Traps