Synthesis of carbon-encapsulated nanowires using polycyclic aromatic hydrocarbon precursors