Measurement of electroweak production of two jets in association with a Z boson in proton-proton collisions at $\sqrts=8\,\text TeV$