Determination of the grain composition of sand