Search for excited quarks in the gamma+jet final state in proton-proton collisions at sqrt(s) = 8 TeV