Measurement of the triple-differential cross section for photon+jets production in proton-proton collisions at sqrt(s) = 7 TeV