An integrated model for the post-solidification shape and grain morphology of fusion welds