Investigation and Implementation of a Robust Temperature Control Algorithm for Friction Stir Welding