Effect of the fraction and size of dispersed carbides on grain size