Strain localization for constitutive models combining plasticity with elastic degradation