what are the byproducts of producing these metals through mining