Calculating the linear weight of a bar depending on the metal (copper, stainless steel or brass) and the profile section (round, flat or tube)