Heterogeneity of synthetic carbons obtained from polyimides