Hernandez outpitches Bumgarner as Mariners beat Giants 2-0