Reliable timetable design for railways and connecting public transport services