Detection of mineral impurities in diatomite ores