Researchers develop a detector for continuously monitoring toxic gases