Zito pitches Giants past Diamondbacks 4-2