Irreversible investment and internal evolution of firm networks: two case studies in the Lombardy region