Electrification of freight trains