Measurement of the semileptonic t t-bar+gamma production cross section in pp collisions at sqrt(s) = 8 TeV