Extracting trabecular geometry from tomographic images of spongy bone