Compliance of maintenance and operational needs for trains: a simulation analysis to evaluate the impact of a flexible scheduling on local transport by rail