Design of energy dissipating elastoplastic structures under cyclic loads using topology optimization