A data-driven approach for evaluating the resilience of railway networks