How digital is transforming today’s trains