Measurement of the semileptonic ttbar gamma production cross section in pp collisions at sqrt(s) = 8 TeV