Sectoral shocks and banking crises in a schumpeterian model of endogenous firm dynamics