Measurement of the triple-differential dijet cross section in proton-proton collisions at s√=8TeV and constraints on parton distribution functions