Training by Demonstration for Welding Robots by Optical Trajectory Tracking