Shakedown Problems for Material Models with Internal Variables