Thermoanalytical investigation of transformation of polyamido acid into polyimide