Discrete models for jointed block masonry walls