Scientists have developed a "signs of life" detector that senses chemicals exhaled by trapped people.