Essays on the distributional and welfare effects of international trade