Seismic design of reinforced concrete and masonry buildings