Emerging carbon-based nanosensor devices: structures, functions and applications