Analyzing time series of serrated flow and the dependence on structural heterogeneity in Al-Mg-Sc alloy