A multilevel approach to the capacity assessment of existing r.c. buildings