Improving the Electrification Process for More Efficient Rail Lines