Avoiding the middle-income trap in the People’s Republic of China