Using the gravity model to estimate the costs of protection