On the numerical modelling of ductile damage with an implicit gradient-enhanced formulation