Effect of macroeconomic factors on stock markets performance International evidence from BRICS and G7 countries