Equivalent-frame modelling of masonry buildings with irregular opening layout