Samsung takes back global smartphone leadership from Apple