Measurement of electroweak-induced production of Wγ with two jets in pp collisions at sqrt(s)=8 TeV and constraints on anomalous quartic gauge couplings