Formation of carbon nanofibers