process of extracting mining from ores profitably