Control of Delay Propagation in Railway Networks Using Max-Plus Algebra