The effect of global crises on stock market correlations: Evidence from scalar regressions via functional data analysis