How the Quality of Institutions Affects Technological Deepening in Developing Countries