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