A porous-based discontinuous model for ductile fracture in metals