what by products are produced from mining