The effect of porosity distribution on ductile failure