Back-to-back-to-back homers help Giants overcome Madison Bumgarner's struggles