Laser beam welding of titanium nitride coated titanium using pulse-shaping