Text this: An optimal control problem for single-spot pulsed laser welding