In situ FTIR analysis for the determination of imidization degree of polyimide precursors