Simulation of shear response of masonry panels under flat-jack testing