Design of riveted and welded connections