Dielectric relaxation and deuteron NMR of water in polyimide films