Non-linear seismic analysis of masonry structures