the process of extracting copper from copper pyrites