Quantifying restoration time of pipelines after earthquakes