Angular coefficients of Z bosons produced in pp collisions at sqrt(s) = 8 TeV and decaying to mu+mu- as a function of transverse momentum and rapidity