Dynamic analysis of damping in layered and welded beams