‘Smart thread’ changes color when there are toxic gases in the air