Carbon based nanostructures and nanodevices