More than 2,400 mines — many of them illegal and unregulated — could be releasing deadly chemicals such as cyanide and mercury into river water, new research shows.