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