Effects of grain size distribution and stress heterogeneity on yield stress of polycrystals: A numerical approach