Randal Grichuk belts 2 HRs as Diamondbacks beat Giants