Design criteria for earthquake resistant buildings with energy dissipators