Analysing materials by measuring the density or specific gravity