stages of metal extraction from an ore