Monte Carlo simulation of grain boundary pinning in the weld heat-affected zone