Finite Element analysis of static problems for elastic media with voids