Two teams of scientists have prototyped a medical device modeled on Star Trek’s “tricorder”