Structure effect on water diffusion and hygroscopic stress in polyimide films