Automatic generation of railway timetables based on a mesoscopic infrastructure model