processing of ore to get pure metals