Eighth-order magnetic moment of the electron. II. Fourth-order vertices containing second- and fourth-order vacuum polarization subdiagrams