Choosing the optimal model parameters for Granger causality in application to time series with main timescale