What are the steps to extract metal from the earths crust