A study of the measures to minimize the risk of injury to passengers in a train collision