Molecular weight characteristics of a polyimide prepared by polycyclization of a polyamidoester