Lower and upper bounds in closed form for out-of-plane strength of masonry structures with frictional resistances