Dynamic shakedown of structures under repeated seismic loads