A macroseismic method for the vulnerability assessment of buildings