Continuum damage model for strain gradient materials with applications to 1D examples