effects of temperature on the formation of graphite