Structural deterioration and time-dependent seismic risk analysis