formula for calculating the volume of a truncated pyramid