Permeation and diffusion of environmental pollutants through flexible polymers