Measurements of the associated production of a Z boson and b jets in pp collisions at root s=8 TeV