extraction of metal from ore