Quantifying the three-dimensional shapes of spheroidal objects in rocks imaged by tomography