steps in extraction of metal