Giants acquire Andrew McCutchen from Pirates