Environmentally friendly conversion of carbon dioxide into carbon nanofibers