Commodity money in the presence of goods of heterogenous quality