Royals acquire former All-Star pitcher in trade with Rangers