Extended shakedown theory for elastic-plastic-damage material models