Quasifission reactions as a probe of nuclear viscosity