Electro-diesel locomotive