Direct fabrication of joints based on direct metal laser sintering in aluminum and titanium alloys