DNA-based nanosensors for small molecules and proteins