The sorption and diffusion of water in epoxy resins