Essays in the economics of electronic commerce