As miners increasingly turn to cyanide to extract gold from low-grade ore, finding a way to detect the harmful chemical has become more important than ever