Prediction of hot tearing during alloy solidification