Geometric probabilities for cubic lattices with cubic obstacles