Micro–macro modelling of the effects of the grain size distribution on the plastic flow stress of heterogeneous materials