Measurements of the pp → Wγγ and pp → Zγγ cross sections and limits on anomalous quartic gauge couplings at s = 8 $$ sqrts=8 $$ TeV