Planning robotic trajectories for thermal spray shape deposition