Optimal data-driven control of manufacturing processes using reinforcement learning: an application to wire arc additive manufacturing | Synapse