3D multi-layer grain structure simulation of powder bed fusion additive manufacturing