Strong-motion duration of earthquakes