Analysis of the three-dimensional shape of sand particles