Essays on the role of advertising in product markets