Endogenous Preferential Trade Agreements: An Empirical Analysis