Carbon-derived micro- and nanostructures for chemical sensing