The role of the pyrimidine ring in the main chain of polyamic acids and polyimides