Influence of cooling rate on deformation due to effective stress in a solidifying alloy