Dynamic behavior of rigid-plastic frames subject to horizontal repeated loads