Smuggling and optimal commercial policy