Sustainable process for the synthesis of highly crystalline polyimides