flow chart of extraction of metal