Quantitative analysis of imidization and degradation in poly(acid)amide-soluble polyimide systems using the PMR and IR methods