Carbonization of aromatic polyimides and pore development in carbon films