Implementation of progressive damage in finite element codes for the assessment of robustness