Business cycle fluctuations and learning-by-doing externalities in a one-sector model