Formation and structure of amorphous carbon char from polymer materials