Vulnerability of buildings in historic town centres: a limit-state approach