Absorption of water in polyimide resins and composites