Essays in network economics