Earthquake Resistant Design of Masonry Buildings