The macroeconomic impact of artificial intelligence