Empirical Analysis of Markets with Differentiated Products: The Characteristics Approach