The Economics of Networks: theory and empirics