Molecular dynamics simulations of grain size stabilization in nanocrystalline materials by addition of dopants