Controlling or monitoring the welding process