Out-of-plane static and dynamic response of masonry panels