what are the by products of producing these metals though mining