Distributions of subadditive functionals of sample paths of infinitely divisible processes