Measurements of differential cross sections for associated production of a W boson and jets in proton-proton collisions at sqrt(s) = 8 TeV