Effect of pinching on structural resilience: performance of reinforced concrete and timber structures under repeated cycles