flow chart of extraction of metals from ores