The computers inside modern trains are already doing much of the driving. At trainmaker Alstom’s factory in Derby, engineers are testing how far that technology could eventually go.