roles of chemistry in mining