Network Markets and the Structure of Networks