Gas nanosensors