Nanosensors for the detection of viruses