Measurement of the CP-violating weak phase phi_s and the decay width difference DeltaGamma_s using the Bs to J/psi phi(1020) decay channel in pp collisions at sqrt(s) = 8 TeV