The effects of customs unions on the pattern and terms of trade in a Ricardian model with a continuum of goods