Optimal origin-based commodity taxation in a small open economy