A constraint-based approach for optimizing the design of overhead lines