A Timetable-Dependent Method for Railway Capacity Analysis: Validation and Case Studies