Temperature dependence of intergrain barriers in polycrystalline semiconductor films