Shakedown of bars subjected to cycles of loads and temperature