A method to quantitatively assess the vulnerability of masonry structures subjected to rockfalls