what are roles of chemistry in mining chemistry