Size effect in heterogeneous materials analyzed through a lattice discrete element method approach