Spectral Collocation-Based Optimization in Parameter Estimation for Nonlinear Time-Varying Dynamical Systems