Combined voids size and shape effects on the macroscopic criterion of ductile nanoporous materials