Volume measurements in three-dimensional microscopy