Grain structure prediction for directionally solidified superalloy castings