Shakedown problems for material models with internal variables