Search for flavor-changing neutral currents in top-quark decays t -> Zq in pp collisions at sqrt(s) = 8 TeV