McCutchen homers twice as Pirates beat Tigers 4-3