what are the byproducts mining metal