Shear flow of periodic arrays of particle clusters: a boundary-element method