A damage model for ductile crack initiation and propagation