A force-based macroelement for the nonlinear dynamic analysis of masonry buildings