A method for the cost optimization of industrial electrical routings