US fastfood giant Yum Brands has posted a sharp rise in second-quarter profit, helped by strong overseas sales.