Nanowire nanosensors