Measurement of the production cross section of a W boson in association with two b jets in pp collisions at sqrt(s) = 8 TeV