The effects of vibration on masonry structures: an example of a damaged masonry building and a simple analytical model