Text this: Essays on product quality, international trade and welfare