A 3D simulation of grain structure evolution during powder bed fusion additive manufacturing and subsequent laser rescanning process