by products of producing metals through mining and what effect on environment