As Tim Cook steps down, here's a look at how he made China central to Apple's growth.