Automatic detection of fused tungsten carbides for the characterization of welding process