Damage functions for the vulnerability assessment of masonry buildings subjected to tunneling