How to measure the density of an irregularly shaped object, such as a golf ball