Automatic Process-Optimised Weld Planning by Finite Element Simulation and Iterative Learning