The chemistry of cyanide solutions resulting from the treatment of ores