A resilience-based model for the seismic assessment of the functionality of road networks affected by bridge damage and restoration