Welfare effects of preferential trade agreements under optimal tariffs