On unilateral contact between rigid masonry blocks