Estimation of earthquake losses to buildings (except single family dwellings)