A simple formula for predicting the horizontal capacity of masonry portal frames