Dynamic Identification and Damage Detection on Masonry Buildings Using Shaking Table Tests