by products of producing metals through mining