what is purpose of roasting in metal extraction