Using servoguns for automated resistance welding