A new method for function-loss based seismic resilience assessment of buildings. (1st September 2022)