Effect of regenerative braking on energy-efficient train control