Welding of hybrid metallic materials with metal foamed core