Tim Cook is right about why companies moved to China