A hair-sized probe that can measure key indicators of tissue damage deep in the lung has been developed by scientists.