Using a displacement-based approach for earthquake loss assessment