An ex-ante model for estimating the impact on trade flows of a country's joining a customs union