On Optimization of Some Parameters in Ultrasonic Metal Welding