Yankees acquire All-Star outfielder from Royals