Use of numerical approaches to predict mechanical properties of brittle bodies containing controlled porosity