Endogenous Trade Protection under Regional TradeAgreements