Bending of tubes and profiles