New design and retrofit of existing masonry buildings based on non-linear static analysis.