The role of networks in labor markets