Analysis of the mechanical deformation arising from investment casting of directionally solidified nickel-based superalloys