Using displacement-based earthquake loss assessment in the selection of seismic code design levels