Improving the Accuracy of Industrial Robots via Iterative Reference Trajectory Modification