Evolution of mechanical, optical and electrical properties of self-assembled mesostructured phenolic resins during carbonization