Giants make big trade for former Cy Young winner