Carbothermal synthesis of metal-functionalized nanostructures for energy and environmental applications