Functionalized Poly-Imide–Amides: Molten State Reaction Mechanisms and Kinetics