by products of producing metals