Capacity design of embedded retaining structures