Stochastic analysis of train traffic to improve timetable planning