Product quality, network effects, and efficiency of network markets