Feedback control of process variables in arc welding