Absorption and diffusion of moisture in polymeric materials