On the dynamic approach to the out of plane seismic collapse of masonry walls