Red Sox trade RHP Stewart to Pirates