Animal spirits, technology shocks and the business cycle