Pirates trade Yankees' target Gerrit Cole to Astros