Activity coefficients and diffusivities of solvents in polymers