Formation and avoidance of surface defects during casting and heat-treatment of single-crystal nickel-based superalloys