Cellular automata modeling of weld solidification structure