Nanostructure evolution during thermal treatment of polyimide–fullerene composites as revealed by WAXS and SAXS