Parameters Optimization of S-Shaped Rail for Crashworthiness Analysis