Transaction costs and social networks in productivity measurement