Arrangement for establishing electrical contact in joints, and a method of producing the arrangement