Hedonic Prices and Implicit Markets: Estimating Demand and Supply Functions for Differentiated Products