Effect of repeated earthquakes on structures