process of transforming minerals to final products