Mechanisms of rapid cooling in underwater welding