Factors affecting the yield of carbon of different types obtained by pyrolysis of hydrocarbons