Discrete event simulation applied to a reengineering problem in a railway context