Quality control of welded joints