Quantify different substances in an heterogeneous mix