Building and lifeline models for seismic assessment of existing structures