Bumgarner homers in Giants' 6-3 win