Development of a displacement-based method for earthquake loss assessment